//
//  CJCommonGMFunc.h
//  CJModileGMAdapter
//
//  Created by shanghailingye on 2024/4/24.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CJCommonToBidFunc : NSObject

/// 获取当前根控制器
+ (UIViewController *)currentRootController;

/// 获取当前window
+ (UIWindow *)getKeyWindow;

/// 计算事件差
/// - Parameters:
///   - startTime: 开始时间
///   - endTime: 结束时间
+ (double)getTimeDifferenceWithStartTime:(NSString * )startTime andEndTime:(NSString *)endTime;

/// 获取当前时间
+ (NSString * )getCurrentHourAndMinuteTime;

@end

NS_ASSUME_NONNULL_END
